package com.new1.srp;

/**
 * Time    : 2023/3/24 16:50
 * Author  : 王摇摆
 * FileName: SingleResponsibility.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class SingleResponsibility1 {
    public static void main(String[] args) {
        Student1 student = new Student1();

        student.attendClass("张三");
        student.attendClass("李四");
    }
}

class Student1 {
    public void attendClass(String student) {
        System.out.println(student + "正在认真的听老师讲课！");
    }
}
